#ifndef MOVINGOBJECT_H
#define MOVINGOBJECT_H

#include "sceneobject.h"
#include "../external/imovingobject.h"

class MovingObject : public SceneObject, public virtual IMovingObject
{
public:
    virtual ~MovingObject();

    float speed() const;
    float direction() const;
    float speedX() const;
    float speedY() const;

protected:
    MovingObject();
    MovingObject(const vec2f &position, float direction);

    void setSpeed(float speed);
    void setDirection(float direction);

private:
    float _speed;
    float _direction;
};

#endif // MOVINGOBJECT_H
